projects
/
project
/
netifd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d140ec
)
ubus: fix type check in procd ubus data callback
author
Felix Fietkau
<
[email protected]
>
Tue, 12 Aug 2025 17:42:45 +0000
(19:42 +0200)
committer
Felix Fietkau
<
[email protected]
>
Tue, 12 Aug 2025 17:43:07 +0000
(19:43 +0200)
Use the correct iterator variable
Signed-off-by: Felix Fietkau <
[email protected]
>
ubus.c
patch
|
blob
|
history
diff --git
a/ubus.c
b/ubus.c
index 1416fa669c9845e97855cbedacbf332e96bfa889..7a489239e344280aab0cb2f3baaa7a50168e6867 100644
(file)
--- a/
ubus.c
+++ b/
ubus.c
@@
-1292,8
+1292,8
@@
netifd_ubus_data_cb(struct ubus_request *req, int type, struct blob_attr *msg)
blobmsg_type(t) != BLOBMSG_TYPE_TABLE)
continue;
blobmsg_for_each_attr(data, t, rem4) {
- if (!blobmsg_check_attr(
t
, true) ||
- blobmsg_type(
t
) != BLOBMSG_TYPE_TABLE)
+ if (!blobmsg_check_attr(
data
, true) ||
+ blobmsg_type(
data
) != BLOBMSG_TYPE_TABLE)
continue;
cb(data);
}